<!-- INCLUDE sv_overall_header.html -->


<!-- IF IN_FB_IFRAME -->
	<script type="text/javascript" src="../ofc/js/json/json2.js"></script>
	<script type="text/javascript" src="../ofc/js/swfobject.js"></script>
	<script type="text/javascript">
	swfobject.embedSWF("../ofc/open-flash-chart.swf", "my_chart", "680", "350", "9.0.0");
	</script>
<!-- ELSE -->
	<script type="text/javascript" src="ofc/js/json/json2.js"></script>
	<script type="text/javascript" src="ofc/js/swfobject.js"></script>
	<script type="text/javascript">
	swfobject.embedSWF("ofc/open-flash-chart.swf", "my_chart", "950", "550", "9.0.0");
	</script>
<!-- ENDIF -->

<script type="text/javascript">

function ofc_ready()
{
    //alert('ofc_ready');
}

function open_flash_chart_data()
{
    //alert( 'reading data' );
    return JSON.stringify(data);
}

function findSWF(movieName) {
  if (navigator.appName.indexOf("Microsoft")!= -1) {
    return window[movieName];
  } else {
    return document[movieName];
  }
}
    
var data = {JASON_STRING};

</script>


<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT -->
	<form method="post" action="{S_LOGIN_ACTION}" class="headerspace">
	<h3><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- IF S_REGISTER_ENABLED -->&nbsp; &bull; &nbsp;<a href="{U_REGISTER}">{L_REGISTER}</a><!-- ENDIF --></h3>
		<fieldset class="quick-login">
			<label for="username">{L_USERNAME}:</label>&nbsp;<input type="text" name="username" id="username" size="10" class="inputbox" title="{L_USERNAME}" />
			<label for="password">{L_PASSWORD}:</label>&nbsp;<input type="password" name="password" id="password" size="10" class="inputbox" title="{L_PASSWORD}" />
			<!-- IF S_AUTOLOGIN_ENABLED -->
				| <label for="autologin">{L_LOG_ME_IN} <input type="checkbox" name="autologin" id="autologin" /></label>
			<!-- ENDIF -->
			<input type="submit" name="login" value="{L_LOGIN}" class="button2" />
			{S_LOGIN_REDIRECT}
		</fieldset>
	</form>
<!-- ENDIF -->

<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{L_SV_PERFORMANCE}</h2> 
	</div>
<!-- IF S_PERFORMANCE  -->
	<!-- IF SHOW_1_MONTH_ROI -->
	<table border="0" cellpadding="5" cellspacing="5">
		
		<tr>
			<td><p>{L_SV_ROI_LAST_1_MONTH}</p></td>
			<td><p>{S_ROI_1_MONTH}%</p></td>
		</tr>
		
		<!-- IF SHOW_3_MONTH_ROI -->
		<tr>
			<td><p>{L_SV_ROI_LAST_3_MONTH}</p></td>
			<td><p>{S_ROI_3_MONTH}%</p></td>
		</tr>
		<!-- ENDIF -->	
		<!-- IF SHOW_6_MONTH_ROI -->
		<tr>
			<td><p>{L_SV_ROI_LAST_6_MONTH}</p></td>
			<td><p>{S_ROI_6_MONTH}%</p></td>
		</tr>
		<!-- ENDIF -->	
		<!-- IF SHOW_12_MONTH_ROI -->
		<tr>
			<td><p>{L_SV_ROI_LAST_12_MONTH}</p></td>
			<td><p>{S_ROI_12_MONTH}%</p></td>
		</tr>
		<!-- ENDIF -->	
		
	</table>
	<!-- ENDIF -->	
<div id="my_chart"></div>
<!-- ELSE -->
{L_SV_NO_PERFORMANCE}
<!-- ENDIF -->
</div>


<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{L_SV_HISTORY}</h2> 
	</div>
	<!-- IF S_LIST  -->
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>
			<td><p>{L_SV_TYPE}</p></td>
			<td><p>{L_SV_STOCK_ID}</p></td>
			<td><p>{L_SV_CORP_NAME}</p></td>
			<td><p>{L_SV_NUMBER}</p></td>
			<td><p>{L_SV_REQUEST_TIME}</p></td>
			<td><p>{L_SV_DEAL_TIME}</p></td>
			<td><p>{L_SV_PRICE}</p></td>
			<td><p>{L_SV_NOTE}</p></td>
		</tr>
		<!-- BEGIN list -->
		<tr>
			<td><p>
			<!-- IF list.ACTION eq buy -->     {L_SV_ACTION_BUY}    <!-- ENDIF -->
			<!-- IF list.ACTION eq sell -->    {L_SV_ACTION_SELL}     <!-- ENDIF -->
			<!-- IF list.ACTION eq to_buy -->  {L_SV_ACTION_TO_BUY}      <!-- ENDIF -->
			<!-- IF list.ACTION eq to_sell --> {L_SV_ACTION_TO_SELL}       <!-- ENDIF -->			
			<!-- IF list.ACTION eq to_buy_deleted -->  {L_SV_ACTION_TO_BUY_DELETED}      <!-- ENDIF -->
			<!-- IF list.ACTION eq to_sell_deleted --> {L_SV_ACTION_TO_SELL_DELETED}       <!-- ENDIF -->			
			</p></td>
			<td><p>{list.CORP_ID}</p></td>
			<td><p>{list.CORP_NAME}</p></td>
			<td><p>{list.NUMBER}</p></td>
			<td><p>{list.REQUEST_TIME}</p></td>
			<td><p><!-- IF list.DEAL_TIME eq 0 -->   {L_SV_DEAL_NOT_DONE}   <!-- ELSE -->    {list.DEAL_TIME}      <!-- ENDIF --></p></td>
			<td><p><!-- IF list.PRICE eq 0 -->   --   <!-- ELSE -->    {list.PRICE}      <!-- ENDIF --></p></td>
			<td><p>{list.NOTE}</p></td>
		</tr>
		<!-- END list -->
	</table>
	<!-- ELSE -->
	{L_SV_NO_HISTORY}
	<!-- ENDIF -->
</div>


<div class="panel" > 
	<div class="inner"><span class="corners-top"><span></span></span> 
	<h2>{L_SV_EQUITY_CHANGE_LOG}</h2> 
	</div>
	<!-- IF S_EQUITY_CHANGE_LIST  -->
	<table border="0" cellpadding="5" cellspacing="5">
		<tr>			
			<td><p>{L_SV_SCHEDULED_DATE}</p></td>
			<td><p>{L_SV_EXECUTION_DATE}</p></td>
			<td><p>{L_SV_STOCK_ID}</p></td>
			<td><p>{L_SV_CORP_NAME}</p></td>
			<td><p>{L_SV_SHARE_BEFORE_CHANGE}</p></td>
			<td><p>{L_SV_DISPATCHED_CASH}</p></td>
			<td><p>{L_SV_SHARE_AFTER_CHANGE}</p></td>
			
		</tr>
		<!-- BEGIN equity_change_log_list -->
		<tr>
			<td><p>{equity_change_log_list.SCHEDULED_DATE}</p></td>
			<td><p>{equity_change_log_list.EXECUTION_DATE}</p></td>
			<td><p>{equity_change_log_list.CORP_ID}</p></td>
			<td><p>{equity_change_log_list.CORP_NAME}</p></td>
			<td><p>{equity_change_log_list.SHARE}</p></td>
			<td><p>{equity_change_log_list.USER_GET_CASH_AFTER_CHANGE}</p></td>
			<td><p>
				<!-- IF equity_change_log_list.CORP_ID == equity_change_log_list.USER_GET_CORP_ID_AFTER_CHANGE  -->
				{equity_change_log_list.USER_GET_SHARE_AFTER_CHANGE}
				<!-- ELSE -->
				{equity_change_log_list.CORP_NAME_AFTER_CHANGE}({equity_change_log_list.USER_GET_CORP_ID_AFTER_CHANGE}) {equity_change_log_list.USER_GET_SHARE_AFTER_CHANGE} {L_SV_SHARE}
				<!-- ENDIF -->
				<!-- IF equity_change_log_list.USER_GET_SHARE_AFTER_CHANGE_2 != 0  -->
				, {L_SV_DISPATCH_IN_ADDITION} {equity_change_log_list.CORP_NAME_AFTER_CHANGE_2}({equity_change_log_list.USER_GET_CORP_ID_AFTER_CHANGE_2}) {equity_change_log_list.USER_GET_SHARE_AFTER_CHANGE_2} {L_SV_SHARE}
				<!-- ENDIF -->
				<!-- IF equity_change_log_list.USER_GET_SHARE_AFTER_CHANGE_3 != 0  -->
				,  {equity_change_log_list.CORP_NAME_AFTER_CHANGE_3}({equity_change_log_list.USER_GET_CORP_ID_AFTER_CHANGE_3}) {equity_change_log_list.USER_GET_SHARE_AFTER_CHANGE_3} {L_SV_SHARE}
				<!-- ENDIF -->
			</p></td>
			
		</tr>
		<!-- END equity_change_log_list -->
	</table>
	<!-- ELSE -->
	{L_SV_NO_HISTORY}
	<!-- ENDIF -->
</div>



<!-- INCLUDE sv_overall_footer.html -->